num = int(input("请输入要打印几组 :"))
i = 1
while i < num+1:
    j = 1
    while j < i+1:
        print(j," * ",i," = ",i * j," ",end=" ")
        j += 1
    i += 1
    print("\n")

